package com.bricks2break;

import com.sprites.Paddle;

public class Player {
	private Score score;
	private Paddle paddle;
	private int scoreMultiplier = 1;
	
	/**
	 * Player class constructor
	 * @param paddle	the paddle that this player will own
	 */
	public Player(Paddle paddle){
		this.scoreMultiplier = 1;
		this.paddle = paddle;
		paddle.setOwner(this);
		score = new Score(this);
	}
	
	public Score getScore() {
		return score;
	}
	
	public Paddle getPaddle() {
		return paddle;
	}
	
	/**
	 * Add points to the existing score
	 * @param points	the points to add
	 */
	public void addPointsToScore(int points){
		score.addPoints(points);
	}
	
	public int getScoreMultiplier() {
		return scoreMultiplier;
	}

	public void setScoreMultiplier(int scoreMultiplier) {
		this.scoreMultiplier = scoreMultiplier;
	}
}
